<template>
  <div class="footer" :class="{'isDown': isDown }">
    <div>
      <p class="footer-title">
        人人佰服APP   为你提供找人、找车、找房、汽车大数据查询服务
      </p>
      <div class="footer-info">
        <p> 网站经营者：人人佰服信息技术（成都）有限公司 丨 地址：四川省成都市高新区天府三街218号 </p>
        <p> 客服热线：028-85054888 丨 微信：19828933515 丨 QQ：965676271 </p>
        <p> 网站备案号：<a href="https://beian.miit.gov.cn/" target="_blank">蜀ICP备2021012094号</a> 丨 违法和不良信息举报：028-85054666 </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      isDown: false
    }
  },
  watch: {
    $route() {
      this.checkClass()
    }
  },
  mounted() {
    this.checkClass()
  },
  methods: {
    checkClass() {
      this.$route.name == 'download' ? this.isDown = true : this.isDown = false
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.footer {
  height: 239px;
  background: #011C2C;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  // position: fixed;
  // bottom: 0;
  // left: 0;
  // right: 0;
  color: #FFFFFF;
  .footer-title {
    font-size: 24px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    line-height: 35px;
    margin-bottom: 20px;
  }
  .footer-info {
    font-size: 16px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    line-height: 24px;
    a {
      color: #fff;
    }
  }
}
.isDown {
  background: #fff !important;
  color: #333 !important;
}
</style>
